package com.admin.mapper;

import com.admin.domain.ScoreParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper类
 */
public interface ScoreParamMapper extends BaseMapper<ScoreParam> {

    ScoreParam getByModuleName(String moduleName);

    List<ScoreParam> getByModuleNames(@Param("moduleNames") List<String> moduleNames);


    double getModuleScore(Integer parentId);

    void  updateMainScore(@Param("moduleScore") Double moduleScore, @Param("parentId") Integer parentId);

}